from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
import garnirechi.ecommerce.views
import settings
import garnirechi.admin.views

urlpatterns = patterns('',
                       (r'^media/(?P<path>.*)$', 'django.views.static.serve',
                        {'document_root': settings.STATIC_DOC_ROOT}),
                       (r'^admin/$', garnirechi.admin.views.admin_shop),
                       (r'^admin/shop/$', garnirechi.admin.views.admin_shop),
                       (r'^admin/shop/product/(\d*)$', garnirechi.admin.views.product),
                       (r'^admin/shop/delete_product/(\d*)$', garnirechi.admin.views.delete_product),
                       (r'^admin/shop/save_product$', garnirechi.admin.views.save_product),
                       (r'^admin/webcontent/$', garnirechi.admin.views.admin_webcontent),
                       (r'^admin/webcontent/content/(\d*)$', garnirechi.admin.views.webcontent),
                       (r'^admin/webcontent/delete_content/(\d*)$', garnirechi.admin.views.delete_webcontent),
                       (r'^admin/webcontent/save_content$', garnirechi.admin.views.save_webcontent),
                       (r'^admin/photoalbums/$', garnirechi.admin.views.admin_photoalbums),
                       (r'^admin/photoalbums/album/(\d*)$', garnirechi.admin.views.photoalbum),
                       (r'^admin/photoalbums/delete_album/(\d*)$', garnirechi.admin.views.delete_photoalbum),
                       (r'^admin/photoalbums/save_album$', garnirechi.admin.views.save_photoalbum),
                       (r'^shop/$', garnirechi.ecommerce.views.shop),
                       (r'^about/$', garnirechi.ecommerce.views.about),
                       (r'^workshop/$', garnirechi.ecommerce.views.workshop),
                       # Example:
                       # (r'^garnirechi/', include('garnirechi.foo.urls')),

                       # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
                       # to INSTALLED_APPS to enable admin documentation:
                       # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

                       # Uncomment the next line to enable the admin:
                       # (r'^admin/', include(admin.site.urls)),
                       )

#urlpatterns += patterns('', include())

urlpatterns += patterns('',
                        (r'^$', garnirechi.ecommerce.views.main))